package com.my.chapter7;

public class practice20 {
    public static void main(String[] args) {
        OverridingPrivate o = new OverridingPrivate();
        o.f();
        o.g();
    }
}

class WithFinals{
    private final void f(){
        System.out.println("WithFinals.f()");
    }
    private void g(){
        System.out.println("WithFinals.g()");
    }
}

class OverridingPrivate extends WithFinals{
    //@Override
    public final void f(){
        System.out.println("OverridingPrivate.f()");
    }
    //@Override
    public void g(){
        System.out.println("OverridingPrivate.g()");
    }
}
